<%@ include file="../common/IncludeTop.jsp"%>
<fieldset style="width:730px; margin:0px auto">
	<legend>My Orders</legend>

<table >
	<tr>
		<th>Order ID</th>
		<th>Date</th>
		<th>Total Price</th>
	</tr>

	<c:forEach var="order" items="${sessionScope.orderList}">
		<tr>
			<td>
			<a href="viewOrder?orderId=${order.orderId}">${order.orderId}</a>
			</td>
			<td><fmt:formatDate value="${order.orderDate}"/>
			</td>
			<td><fmt:formatNumber value="${order.totalPrice}"
				  pattern="$#,##0.00"/></td>
		</tr>
	</c:forEach>
</table>
</fieldset>
<%@ include file="../common/IncludeBottom.jsp"%>


